package com.sso.server.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author songyouchao
 * @ClassName LoginController.java
 * @Description
 * @createTime 2021年08月15日
 */
@Controller
public class LoginController {
    @GetMapping("/authentication/loginPage")
    public String login(){
        return "views/common/login";
    }

    @GetMapping("/authentication/success")
    public String success(){
        return "views/common/index";
    }

    @PostMapping("/authentication/fail")
    public String fail(){
        return "views/common/204";
    }
}
